# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=itpp
pkgver=4.3.1
pkgrel=4
pkgdesc='C++ library of mathematical, signal processing and communication routines.'
arch=('x86_64' 'aarch64')
url='http://itpp.sourceforge.net/'
license=('GPL')
depends=('blas' 'lapack' 'fftw' 'perl')
makedepends=('cmake')
source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2")
sha512sums=('b46d048fa7f33e80d2291a5e38e205c159791ea200f92c70d69e8ad8447ac2f0c847fece566a99af739853a1643cb16e226b4200c8bf115417f324e6d38c66bd')

build() {
  cd "$pkgname-$pkgver"

  mkdir -p build

  cd build

  cmake .. -DCMAKE_INSTALL_PREFIX=/usr

  make
}

package() {
  cd "$pkgname-$pkgver/build"

  make DESTDIR="$pkgdir" install
}

